package club.ljwang.dao;

import club.ljwang.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    Set<Permission> selectByRoleId(Integer id);

    List<Permission> findPage(@Param("queryString") String queryString);

    Integer findCountByPermissionId(Integer id);

    void delete(Integer id);
}